package com.lagou.service.impl;

import com.lagou.Hello2Service;
import org.apache.dubbo.config.annotation.Service;
import org.apache.dubbo.rpc.RpcContext;

/**
 * @ClassName: Hello2ServiceImpl
 * @Auther: Jerry
 * @Date: 2020/10/18 22:12
 * @Desctiption: TODO
 * @Version: 1.0
 */
@Service
public class Hello2ServiceImpl implements Hello2Service {

    @Override
    public String sayHello(String name) {
        return "hello2," + name  + " " + RpcContext.getContext().getAttachment("ip");
    }
}
